package com.jrx.anytxn.accounting.job.consolidationcheck.step;

import com.jrx.anytxn.accounting.bean.ConsolidationCheckBean;
import com.jrx.anytxn.accounting.entity.GaVoucherInfo;
import com.jrx.anytxn.accounting.service.IConsolidationService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 并账检查- processor
 * @author Qingyao Xing
 * @date 2019/9/9 11:41
 */
@Service
public class ConsolidationCheckProcessor  implements ItemProcessor<GaVoucherInfo, ConsolidationCheckBean> {

    @Autowired
    private IConsolidationService consolidationService;

    @Override
    public ConsolidationCheckBean process(GaVoucherInfo gaVoucherInfo) {

        return consolidationService.getConsolidationCheckBean(gaVoucherInfo);
    }
}
